# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Contributor: Justin Berthault <justin.berthault@zaclys.net>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=py3-django-filter
pkgver=22.1
pkgrel=3
pkgdesc="Generic system for filtering Django QuerySets based on user selections"
url="https://github.com/carltongibson/django-filter"
arch="noarch"
license="BSD-3-Clause"
depends="py3-django"
makedepends="py3-setuptools"
checkdepends="py3-markdown py3-core-api py3-coverage py3-tz
	py3-django-crispy-forms py3-django-rest-framework py3-mock"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/d/django-filter/django-filter-$pkgver.tar.gz"
builddir="$srcdir"/django-filter-$pkgver

build() {
	python3 setup.py --quiet build
}

check() {
	python3 runtests.py
}

package() {
	python3 setup.py install --skip-build --prefix=/usr --root="$pkgdir"
}

sha512sums="
0b92186cc6831351b22a7d0d8c447ec3fbd25db03402b47cdae650c8e4f9a80f384c49540bcacf1f15bfe07f27b77e0950d9ec69fab4b839f23a89486d611be9  django-filter-22.1.tar.gz
"
